package com.example.userapi.api;

import com.example.userapi.dto.UserDto;
import org.example.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
/**
 * @author
 * @date 2021-4-16 11:07
 */
public interface IUserService {
    /**
     * 查询用户
     * @param userId
     * @return
     */
    @GetMapping(value = "/user/{userId}")
    R<UserDto> selectByUserId(@PathVariable("userId") Integer userId);
}
